<?php Yii::app()->clientScript->registerScriptFile(Yii::app()->params['static'].'assets/js/validateEngine/jquery.validationEngine.min.js',2); ?>
<?php Yii::app()->clientScript->registerScriptFile(Yii::app()->params['static'].'assets/js/validateEngine/jquery.validationEngine-zh_CN.js',2); ?>
<?php Yii::app()->clientScript->registerCssFile(Yii::app()->params['static'].'assets/css/validationEngine.jquery.css'); ?>
<?php Yii::app()->clientScript->registerScriptFile(Yii::app()->params['static'].'assets/js/bootbox.min.js',2); ?>
<div class="page-header">
							<h1>
							修改比例
							</h1>
</div>
<div class="row">
 <div class="col-xs-12">
	<div class="row">
		<form class="form-horizontal" role="form" method="post" action="<?php echo Yii::app()->createUrl('scholarship/changepro');?>">
									  <div class="form-group">
										<label class="col-sm-4 control-label no-padding-right" for="form-field-6">品德行为分比例：</label>

										<div class="col-sm-4">
											<input  type="text" class="form-control validate[required,custom[integer]]" placeholder="品德行为分比例" title="" name="morality" value="<?php echo $per->morality; ?>">
											
										</div>
									</div>
								

									<div class="space-4"></div>
                                    <div class="form-group">
										<label class="col-sm-4 control-label no-padding-right" for="form-field-6">学业附加分比例：</label>

										<div class="col-sm-4">
											<input  type="text" class="form-control validate[required,custom[integer]]" placeholder="学业附加分比例" title="" name="integrate" value="<?php echo $per->integrate; ?>">
											
										</div>
									</div>
								

									<div class="space-4"></div>
									  <div class="form-group">
										<label class="col-sm-4 control-label no-padding-right" for="form-field-6">文体综合素质分：</label>

										<div class="col-sm-4">
											<input  type="text" class="form-control validate[required,custom[integer]]" placeholder="文体综合素质分" name="physical" value="<?php echo $per->physical; ?>">
											
										</div>
									</div>
								

									<div class="space-4"></div>
									  <div class="form-group">
										<label class="col-sm-4 control-label no-padding-right" for="form-field-6"> 学业成绩分比例：</label>

										<div class="col-sm-4">
											<input  type="text" class="form-control validate[required,custom[integer]]" placeholder="学业成绩分比例" name = "performance" title="" value="<?php echo $per->performance; ?>">
											
										</div>
									</div>
								

									<div class="space-4"></div>

								

									<div class="clearfix form-actions">
										<div class="col-md-offset-5 col-md-7">
											<button class="btn btn-info" type="submit">
												<i class="icon-ok bigger-110"></i>
												提交
											</button>

											
										</div>
									</div>

								
			</form>
		</div>
	</div>
</div>
<script type="text/javascript">
   jQuery(function(){
	   
     	<?php
		  if(Yii::app()->user->hasFlash('update')){
			  echo 'bootbox.alert("'.Yii::app()->user->getFlash('update').'");';
			  
		  }
		?>  
		//begin the validate
		  $(".form-horizontal").validationEngine("attach",{ 
				promptPosition:"topRightt", 
				scroll:true,
				validateNonVisibleFields:false,
		  }); 
	  
   });
</script>